/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.boxin.ims.modules.wechat.dao.dic;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.thinkgem.jeesite.common.persistence.BaseDao;
import com.thinkgem.jeesite.common.persistence.BaseDaoImpl;
import com.boxin.ims.modules.wechat.entity.dic.Storefront;

/**
 * 实体店DAO接口
 * @author Jakemanse
 * @version 2013-12-10
 */
public interface StorefrontDao extends StorefrontDaoCustom, CrudRepository<Storefront, Long> {

	@Modifying
	@Query("delete from  Storefront   where id = ?1")
	public int deleteById(Long id);
	
	@Query(" from  Storefront   where command = ?1")
	public Storefront getByCommand(String command);
	
}

/**
 * DAO自定义接口
 * @author Jakemanse
 */
interface StorefrontDaoCustom extends BaseDao<Storefront> {

}

/**
 * DAO自定义接口实现
 * @author Jakemanse
 */
@Component
class StorefrontDaoImpl extends BaseDaoImpl<Storefront> implements StorefrontDaoCustom {

}
